﻿// Copyright © 2008 by Gert van 't Slot
// License: Microsoft Public License (Ms-PL)
// Full license text at: http://www.codeplex.com/WinformHtmlTextbox/license

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HtmlTextboxSample {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {
            // this.htmlTextbox1.DoTest();
        }

        private void htmlTextbox2_Load(object sender, EventArgs e) {

        }

        private void textBox1_TextChanged(object sender, EventArgs e) {

        }

        private void htmlTextbox2_TextChanged(object sender, EventArgs e) {
             this.textBox1.Text = htmlTextbox2.PlainText;
        }

        private void button1_Click_1(object sender, EventArgs e) {
            using (Dlg dlg = new Dlg()) {
                dlg.ShowDialog(this);
            }
        }
    }
}
